package com.carleasoft.mps.adu.business.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carleasoft.mps.adu.business.user.bean.entity.MAuthorityStaggerHolidays;
import com.carleasoft.mps.adu.business.user.bean.entity.MAuthorityUserDynamic;
import com.carleasoft.mps.adu.business.user.bean.po.MAuthorityUserDynamicPo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityDeptCountVo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityUserDynamicVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 人员动态Mapper接口
 * 
 * @author yiSl
 * @date 2024-04-12
 */
@Repository
@Mapper
public interface MAuthorityUserDynamicMapper extends BaseMapper<MAuthorityUserDynamic>
{
    /**
     * 查询人员动态
     * 
     * @param id 人员动态主键
     * @return 人员动态
     */
    public MAuthorityUserDynamicVo selectMAuthorityUserDynamicById(Integer id);

    /**
     * 查询人员动态列表
     * 
     * @param mAuthorityUserDynamic 人员动态
     * @return 人员动态集合
     */
    public Page<MAuthorityUserDynamicVo> selectMAuthorityUserDynamicList(@Param("page") Page page,@Param("po") MAuthorityUserDynamicPo mAuthorityUserDynamic);

    /**
     * 根据部门Code分钟求和总条数
     * @return
     */
    public List<MAuthorityDeptCountVo> selectMAuthorityDeptCountByDeptCode(@Param("createTime") String createTime);


    int selectPageCount(@Param("po") MAuthorityUserDynamicPo mAuthorityUserDynamic);

}
